<!DOCTYPE html>
<html>
<head>
<meta content="telephone=no" name="format-detection">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="zh-CN">
<meta http-equiv="x-ua-compatible" content="IE=edge, chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<meta name="keywords" content="全国青少年无人机科学素质等级考试,无人机,无人机等级,无人机考点,无人机考生" />
<meta name="description" content="全国青少年航空科学素质等级考试" />
<link rel="icon" href="favicon.ico" />
<link rel="shortcut icon" href="favicon.ico" />
<link href="csaa/css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="./csaa/fonts/iconfont/iconfont.css">
<link rel="stylesheet" href="./csaa/fonts/materialicons/material-icons.css">

<script language="javascript" type="text/javascript" src="csaa/js/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="csaa/js/site.js"></script>
<script src="csaa/js/httpPath.js"></script>
<script src="csaa/js/httpUtils.js"></script>
<title>全国青少年航空科学素质等级考试</title>
</head>
<body>
<!-- 头部 开始 -->
<div class="header">

</div>
<!-- 头部 结束 -->

<!-- 首页banner 开始 -->
<link rel="stylesheet" href="./csaa/js/swiper/swiper.min.css">
<script src="./csaa/js/swiper/swiper.min.js"></script>
<div class="index_banner">
	<div class="banner swiper-container">
		<div class="swiper-wrapper">
			<!-- <div class="swiper-slide">
				<div class="banner_box" style="background-image: url(./demo/img/index_banner01.jpg)"></div>
				<div class="text_wrap limitwidth">
					<div class="box">
						<div class="title">2020年第二季度等级考试安排预通知</div>
						<div class="subtitle">Notice on the arrangement of grade examination in the second quarter of 2020</div>
						<div class="btn_wrap">
							<a class="btn btn_color_2" href="#">立即查看</a>
						</div>
					</div>
				</div>
			</div> -->
		</div>
		<div class="banner_pagination"></div>
		<!-- <a class="banner_prev"><i class="material-icons">&#xe408;</i></a> -->
		<!-- <a class="banner_next"><i class="material-icons">&#xe409;</i></a> -->
	</div>
</div>
<!-- 首页banner 结束 -->

<!-- 主体 开始 -->
<div id="index_main">
	<div class="main">

		<div class="index_news">
			<div class="index_title">
				<div class="title"><span class="text_b">考级动态</span></div>
			</div>
			<div class="index_news_content">
				<!-- <a class="item hasimg" href="./news_info.html">
					<div class="box">
						<div class="img_wrap">
							<div class="img" style="background-image: url(./demo/img/index_banner01.jpg)"></div>
						</div>
						<div class="info">
							<div class="title_wrap">
								<span class="badge badge_color_1">一级考试</span>
								<span class="title_text">中国航空学会发布2020考级标准中国航空学会发布2020考级标准中国航空学会发布2020考级标准</span>
								<div class="time">11-20</div>
							</div>
							<div class="subtitle">时序更替，一元复始。值此辞旧迎新之际，中国航空学会向在过去一年中支持和关心学会的有关上级部门、学会会员、航空科技工作者以及各界人士致以诚挚的谢意，并送上最美好的新年祝福。</div>
						</div>
					</div>
				</a>

				<a class="item" href="./news_info.html">
					<div class="box">
						<div class="info">
							<div class="title_wrap">
								<span class="badge badge_color_1">一级考试</span>
								<span class="title_text">中国航空学会发布2020考级标准中国航空学会发布2020考级标准中国航空学会发布2020考级标准中国航空学会发布2020考级标准</span>
								<div class="time">11-20</div>
							</div>
						</div>
					</div>
				</a> -->
			</div>
			<div class="manage_wrap">
				<a href="./news.html" class="btn btn_color_2 btn_outline btn_text ">MORE</a>
			</div>
		</div>
	</div>
	<!-- footer 开始-->
	<div class="footer_wrap">

	</div>

	<script>
	fun_islogin(true);//页面头部登录


	//banner切换
	function fun_banner(){
	  var swiper = new Swiper(".banner", {
		pagination: {
					  el: ".banner_pagination",
					  clickable: true,
					},
		navigation: {
					  nextEl: ".banner_next",
					  prevEl: ".banner_prev"
					},
		loop: true,
		//autoplay: {
					//delay: 5000
				  //}
	  });
	}


	$(document).ready(function(){
		httpPost(GET_BANNER_LIST,{pageSize:10000,pageNum:1},function(results){
			var html = '';
			for(var i in results){
				html += '<div class="swiper-slide">'+
							'<div class="banner_box" style="background-image: url(' + results[i].imgUrl + ')"></div>'+
							'<div class="text_wrap limitwidth">'+
								'<div class="box">'+
									'<div class="title">' + results[i].imgName + '</div>'+
									'<div class="subtitle">' + results[i].subtitle + '</div>';
				if(results[i].type == 1){
					html+= 				'<div class="btn_wrap">'+
											'<a class="btn btn_color_2" href="' + results[i].url + '">立即查看</a>'+
										'</div>';
				}
				html+=			'</div>'+
							'</div>'+
						'</div>';
			}
			//console.log(html);
			$(".swiper-wrapper").append(html);

			fun_banner();
		});

		httpPost(GET_NEWS_LIST,{pageSize:10000,pageNum:1},function(results){
			var html = '';
			for(var i in results){
				console.log(results[i].newsType);
				var typeName = isObjNull(results[i].newsType)?'无分类':results[i].newsType.typeName;
				if(i<=1){
					html += '<a class="item hasimg" href="./news_info.html?id=' + results[i].id + '">'+
								'<div class="box">'+
									'<div class="img_wrap">'+
										'<div class="img" style="background-image: url(' + results[i].img + ')"></div>'+
									'</div>'+
									'<div class="info">'+
										'<div class="title_wrap">'+
											// '<span class="badge badge_color_1">' + typeName + '</span>'+
											'<span class="title_text">' + results[i].title + '</span>'+
											'<div class="time">'+toDateStr(results[i].createDate)+'</div>'+
										'</div>'+
										'<div class="subtitle">' + results[i].summary + '</div>'+
									'</div>'+
								'</div>'+
							'</a>';
				}else{
					html += '<a class="item" href="./news_info.html?id=' + results[i].id + '">'+
								'<div class="box">'+
									'<div class="info">'+
										'<div class="title_wrap">'+
											//'<span class="badge badge_color_1">' + typeName + '</span>'+
											'<span class="title_text">' + results[i].title + '</span>'+
											'<div class="time">'+toDateStr(results[i].createDate)+'</div>'+
										'</div>'+
									'</div>'+
								'</div>'+
							'</a>';
				}
			}

			$(".index_news_content").append(html);

		});
	});
	</script>



<!------------------------------------ 主体分割 -------------------------------->





</div>
<!-- 主体 结束 -->


</body>
</html>











